Skip to content

Run HTTP benchmark clients without GPU privileges - #148

Merged
haofrank merged 4 commits into
mainfrom
codex/endpoint-client-permissions
Nov 13, 2026
Merged

haofrank merged 4 commits into
mainfrom
codex/endpoint-client-permissions

Conversation

@alaydshah

@alaydshah alaydshah commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Endpoint benchmarks only send HTTP requests, but their Docker containers still request GPU devices and serving privileges. This blocks CPU-only clients on hosts that reject privileged containers.

Reuse the existing client phase and built-in BENCHMARK_BASE_URL workflow in the Docker command builder:

  • Skip automatic GPU selection, GPU detection, device requests and serving capabilities for HTTP clients.
  • Set their open-file limit to 65,536 for concurrent requests.
  • Preserve GPU options for ordinary serving, combined runs and custom scripts.

Adds focused regression cases and a configuration note. No serving lifecycle or backend changes.

Validation

Completed on 99cb215:

  • Linux Python 3.12: 1,570 passed, 1 skipped; 90.56% coverage.
  • Linux Python 3.10: 1,482 passed, 89 skipped.
  • Real SGLang 1P1D endpoint on two MI355X nodes, TP8/DP8/EP1: Artemis-enabled C512/C1024/C2048 and stock C512/C1024 passed with zero measured request failures and exact 1,024-input/100-output token lengths.
  • Effective client containers verified without GPU devices or privileged capabilities, with nofile=65536.

Stock C2048 also passed on latest 0cf07a6: 2,048/2,048 completed, zero failures, exact 1,024-input/100-output token lengths. Stock results span two evaluations because a controller-connectivity interruption required rerunning only C2048. Final artifact/TIDE handoff and cleanup are verified: published artifact sizes/digests match their manifests, serving/client containers are absent, and both workers are released with GPU memory clear. Both upstream Linux CI jobs passed on 99cb215. Follow-up 0cf07a6 preserves GPU options for custom scripts in subfolders, even when they share a bundled filename; its 69-test benchmark suite and both upstream Linux CI jobs passed (Python 3.12: 1,572 passed, 1 skipped; Python 3.10: 1,484 passed, 89 skipped). Copilot review is pending; the review request was rejected by account eligibility. These are capacity/integration checks; accuracy was disabled and performance gains are not claimed.

Follow-up 4578940 resolves the selected script before automatic GPU selection and shares the HTTP-client check with Docker setup. The entry-point regression test reproduces a GPU-less host with automatic selection enabled and checks that ordinary serving/custom scripts retain GPU selection. All 195 relevant tests pass; both upstream Linux CI jobs passed for this follow-up.

@alaydshah alaydshah closed this Nov 12, 2026
@alaydshah alaydshah reopened this Nov 12, 2026
@alaydshah
alaydshah marked this pull request as ready for review November 12, 2026 21:53
@haofrank

Copy link
Copy Markdown
Member

This change makes sense. Could we also skip automatic GPU selection for these HTTP-only clients? It runs before the Docker command is built, so a CPU-only host can still fail even with this change. Detecting client-only mode earlier and reusing that decision in both places would address this. A test that starts from the benchmark entry point on a host without GPUs would help cover it.

Resolve the benchmark script before GPU selection and share the client-only check with Docker setup. Cover the benchmark entry point on a GPU-less host while preserving serving and custom-script selection.

@haofrank haofrank left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks~LGTM!

@haofrank
haofrank merged commit c166862 into main Nov 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants